﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TinTuc.aspx.cs" Inherits="SacMauVN.TinTuc"
    MasterPageFile="~/Site1.Master" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
    <div class="view-product resetall">
        <h3 class="h3-product">
            Tin tức</h3>
        <div class="clear" style="padding-top: 20px;">
        </div>
        <asp:Repeater ID="rptTinTuc" runat="server">
            <HeaderTemplate>
                <div class="home-vip" style="padding: 20px 10px;">
            </HeaderTemplate>
            <ItemTemplate>
                <div class="article-item">
                    <div class="sp-img">
                        <img src='<%#Eval("Image") %>' title='<%#Eval("TenDM") %>' width="100px;" />
                    </div>
                    <div class="tintuc">
                        <div style="float: left">
                            <a href='<%#"ChiTietTin.aspx?tID="+Eval("ID") %>' title='<%#Eval("TenDM") %>'>
                                <%#Eval("TenDM") %></a>
                        </div>
                        <div class="date">
                            <%#Eval("UpdateDate") %></div>
                        <div class="clear">
                        </div>
                        <div class="description">
                            <%#Regex.Replace(Eval("NoiDung").ToString(), "<.*?>", "").ToString().Substring(0, 100) + "..."%>
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>
            </ItemTemplate>
            <FooterTemplate>
                </div>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    <div class="clear" style="clear: both">
    </div>
</asp:Content>
